<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试文件上传和下载</title>
</head>
<body>
    <a th:href="@{/testDown}">下载图片</a>
    <form th:action="@{/testUp}" method="post" enctype="multipart/form-data">
        头像： <input type="file" name="photo"> <br>
        <input type="submit" value="提交">
    </form>
</body>
</html>